package com.example.demo.mapper;

import com.example.demo.model.Blog;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BlogMapper {
    /**
     * 返回博客列表
     * @return
     */
    List<Blog> getAll();

    Integer insert(Blog blog);

    Integer delete(Integer blogId);

    Integer update(Blog blog);

    Blog selectById(Integer blogId);
}
